<html>
<head>
<meta name="Generator" content="QQ 80342014" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Keywords" content="<?php echo $this->_var['keywords']; ?>" />
<meta name="Description" content="<?php echo $this->_var['description']; ?>" />

<title><?php echo $this->_var['page_title']; ?></title>

<link rel="shortcut icon" href="favicon.ico" />
<link rel="icon" href="animated_favicon.gif" type="image/gif" />
<link href="<?php echo $this->_var['ecs_css_path']; ?>" rel="stylesheet" type="text/css" />

<?php echo $this->smarty_insert_scripts(array('files'=>'transport_jquery.js,common.js,user.js')); ?>

<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="format-detection" content="telephone=no" />
</head>
<body>
<?php echo $this->fetch('library/header.lbi'); ?>
<?php echo $this->smarty_insert_scripts(array('files'=>'jquery.json.js')); ?>
<div class="y-content">

<?php if ($this->_var['action'] == 'list'): ?>
		<?php echo $this->fetch('library/tab.lbi'); ?>
	<div class="y-box">
		<div class="y-title">
			<a href="user.php?act=huodong">我参加的活动</a>
		</div>
		<div class="y-cont">
			<div class="y-my">
				<div class="y-myone">
					<div class="y-img"><img src="themes/view/img/y-hui.png"></div>
					<span>一元买羊</span>
				</div>
				<div class="y-int">
					活动介绍:一元买羊活动介绍：取当前在售期的联养羊只用于抽奖活动，每花费1元得到人次抽奖号，凑足人次就开奖，公平、公开。
		
				</div>
				<div class="y-input">
					<?php if ($this->_var['yyqy'] > 0): ?>
					<input class="y-wycy" type="button" onclick="window.location.href='activitys.php?act=oneyuanbuylist'" value="我要参与" name="">
					<?php else: ?>
					<input class="y-wycy" type="button" onclick="msgs('暂时没有活动哦！！！')"  value="我要参与" name="">
					<?php endif; ?>
				</div>
			</div>
		</div>
		
		<div class="y-cont">
			<div class="y-my">
				<div class="y-myone">
					<div class="y-img"><img src="themes/view/img/y-hui.png"></div>
					<span>免费要羊</span>
				</div>
				<div class="y-int">
					活动介绍:免费发起要羊活动，推送给好友或分享至朋友圈，让朋友帮忙付款、砍价（朋友帮忙付款或砍价结束后，剩余金额主人可以自己付款，省下的就是赚到的！）
		
				</div>
				<div class="y-input">
					<?php if ($this->_var['yyqy'] > 0): ?>
					<input class="y-wycy" type="button"  onclick="window.location.href='activitys.php?act=wxylist'"  value="我要参与" name="">
					<?php else: ?>
					<input class="y-wycy" type="button" onclick="msgs('暂时没有活动哦！！！')"  value="我要参与" name="">
					<?php endif; ?>
				</div>
			</div>
		</div>
	</div>
	<div class="wk-height"></div>
	<div class="wk-height"></div>
<?php endif; ?>




<?php if ($this->_var['action'] == 'oneyuanbuylist'): ?>
<?php echo $this->fetch('library/js_css.lbi'); ?>
<article class="pagecontent" style="display: block;" id="wk-content" ui-view="" data-current-cache="false">
<section class="y-box" avalonctrl="oneyuanbuylist">
</section>
</article>

<div class="wk-height"></div>
<link href="themes/view/css/dropload.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="themes/view/js/dropload.min.js"></script>
<script type="text/javascript" src="themes/view/js/dropload.js"></script>
<script>
var size = <?php echo $this->_var['size']; ?>;
var types = 2;
var page = 1;
var url = "activitys.php?act=ajax_activitys_list";
var user = {
	page:page,
	size:size,
	types:types,
}; 
ajax_list(user,url);
</script>

<?php endif; ?>





<?php if ($this->_var['action'] == 'wxylist'): ?>
<?php echo $this->fetch('library/js_css.lbi'); ?>
<article class="pagecontent" style="display: block;" id="wk-content" ui-view="" data-current-cache="false">
<section class="y-box" avalonctrl="oneyuanbuylist">
</section>
</article>

<div class="wk-height"></div>
<link href="themes/view/css/dropload.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="themes/view/js/dropload.min.js"></script>
<script type="text/javascript" src="themes/view/js/dropload.js"></script>
<script>
var size = <?php echo $this->_var['size']; ?>;
var types = 3;
var page = 1;
var url = "activitys.php?act=ajax_activitys_list";
var user = {
	page:page,
	size:size,
	types:types,
}; 
ajax_list(user,url);
</script>
<?php endif; ?>





<?php if ($this->_var['action'] == 'wantshare'): ?>
<?php echo $this->fetch('library/js_css.lbi'); ?>

<?php echo $this->fetch('library/wantshare_xq.lbi'); ?>
<div class="wk-height"></div>
<script type="text/javascript" src="themes/view/js/huodong.js"></script>
<?php endif; ?>



<?php if ($this->_var['action'] == 'wantshare_fx'): ?>
<?php echo $this->fetch('library/js_css.lbi'); ?>

<?php echo $this->fetch('library/wantshare_fx.lbi'); ?>
<div class="wk-height"></div>
<script type="text/javascript" src="themes/view/js/huodong.js"></script>
 
<link href="themes/view/css/dropload.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="themes/view/js/dropload.min.js"></script>
<script type="text/javascript" src="themes/view/js/dropload.js"></script>
<script>
var size = <?php echo $this->_var['size']; ?>;
var id = <?php echo $this->_var['wantshare']['id']; ?>;
var lxtype = <?php echo $this->_var['lxtype']; ?>;
var page = 1;
var url = "activitys.php?act=ajax_kanjia_list";
var user = {
	page:page,
	size:size,
	id:id,
	lxtype:lxtype
}; 
ajax_list(user,url,'GET','friene-pay-list');
</script>
 
<?php endif; ?>







<?php if ($this->_var['action'] == 'oneyuan_xq'): ?>
<?php echo $this->fetch('library/js_css.lbi'); ?>

<?php echo $this->fetch('library/oneyuan_xq.lbi'); ?>
<div class="wk-height"></div>
<script type="text/javascript" src="themes/view/js/huodong.js"></script>
<link href="themes/view/css/dropload.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="themes/view/js/dropload.min.js"></script>
<script type="text/javascript" src="themes/view/js/dropload.js"></script>

<script>
var size = <?php echo $this->_var['size']; ?>;
var sheep_id = <?php echo $this->_var['sheep']['sheep_id']; ?>;
var page = 1;
var url = "activitys.php?act=ajax_buy_list";
var user = {
	page:page,
	size:size,
	sheep_id:sheep_id,
}; 
ajax_list(user,url,'GET','wrap');
</script>
<?php endif; ?>








 
<?php echo $this->fetch('library/foot.lbi'); ?>
</div>
</body>
</html>